from django.db import models

# Create your models here.
from django.db import models


class Protocol(models.Model):
    PROTOCOL_CHOICES = (
        ('http', 'HTTP'),
        ('ssh', 'SSH'),
        ('tcp', 'TCP'),
        ('udp', 'UDP'),
    )
    name = models.CharField(max_length=4, choices=PROTOCOL_CHOICES, unique=True)
    config = models.TextField()

    def __str__(self):
        return self.name
